﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Guide_Detail.aspx.vb" Inherits="Travelling_Alone.Guide_Detail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="the_author" HeaderText="Author" 
                SortExpression="the_author" />
            <asp:BoundField DataField="the_title" HeaderText="Title" 
                SortExpression="the_title" />
            <asp:BoundField DataField="the_location" HeaderText="Place" 
                SortExpression="the_location" />
            <asp:BoundField DataField="the_description" HeaderText="Description" 
                SortExpression="the_description" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:TravellingAloneConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:TravellingAloneConnectionString.ProviderName %>" 
        SelectCommand="SELECT * FROM [guides] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
